//
//  InspirationCollectionViewCell.m
//  PerfectWorld
//
//  Created by dllo on 16/9/19.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "InspirationCollectionViewCell.h"
#import "UIImageView+WebCache.h"
#import "SonUser.h"
#import "SonUserImage.h"
#import "IdeaPhotos.h"
@implementation InspirationCollectionViewCell

- (void)setModel:(ideabooks *)model {
    _model = model;
    if (model.photos.count > 0) {
        
    
    NSNumber *num = model.photos[0].Photos_id;
    NSString *str = [num description];
    NSString *str2 = [str substringToIndex:3];
    [_imageMain sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://image.gooju.cn/images/%@/9/%@_0_9-.jpg", str2, str]] placeholderImage:nil];
    }
    _labelName.text = model.title;
    _labelName.textColor = [UIColor blackColor];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    [self layoutIfNeeded];
    // Initialization code
}

@end
